﻿using System;

namespace diantou.web.emanagement
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class userInfo : adminView<userInfo>
    {
        /// <summary>
        /// 用户
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.user user;
        /// <summary>
        /// 
        /// </summary>
        private diantou.examDataAccess.enterprise enterprise
        {
            get { return examDataAccess.clientCache.Enterprise[user.Id]; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        private bool loadView(int userId)
        {
            user = diantou.dataAccess.clientCache.User[userId];
            if (user != null) return true;
            AjaxResponse(webConfig.NotFound404);
            return false;
        }
    }
}
